/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Fabian
 */
@Embeddable
public class ExperienciaLaboralPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "cedula_evaluador")
    private String cedulaEvaluador;
    @Basic(optional = false)
    @Column(name = "cargo")
    private String cargo;
    @Basic(optional = false)
    @Column(name = "empresa")
    private String empresa;

    public ExperienciaLaboralPK() {
    }

    public ExperienciaLaboralPK(String cedulaEvaluador, String cargo, String empresa) {
        this.cedulaEvaluador = cedulaEvaluador;
        this.cargo = cargo;
        this.empresa = empresa;
    }

    public String getCedulaEvaluador() {
        return cedulaEvaluador;
    }

    public void setCedulaEvaluador(String cedulaEvaluador) {
        this.cedulaEvaluador = cedulaEvaluador;
    }

    public String getCargo() {
        return cargo;
    }

    public void setCargo(String cargo) {
        this.cargo = cargo;
    }

    public String getEmpresa() {
        return empresa;
    }

    public void setEmpresa(String empresa) {
        this.empresa = empresa;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cedulaEvaluador != null ? cedulaEvaluador.hashCode() : 0);
        hash += (cargo != null ? cargo.hashCode() : 0);
        hash += (empresa != null ? empresa.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ExperienciaLaboralPK)) {
            return false;
        }
        ExperienciaLaboralPK other = (ExperienciaLaboralPK) object;
        if ((this.cedulaEvaluador == null && other.cedulaEvaluador != null) || (this.cedulaEvaluador != null && !this.cedulaEvaluador.equals(other.cedulaEvaluador))) {
            return false;
        }
        if ((this.cargo == null && other.cargo != null) || (this.cargo != null && !this.cargo.equals(other.cargo))) {
            return false;
        }
        if ((this.empresa == null && other.empresa != null) || (this.empresa != null && !this.empresa.equals(other.empresa))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "modelo.ExperienciaLaboralPK[ cedulaEvaluador=" + cedulaEvaluador + ", cargo=" + cargo + ", empresa=" + empresa + " ]";
    }
    
}
